package com.zr.quotation.controller;

import com.zr.planclass.util.ResultVo;
import com.zr.quotation.model.QuotationServiceVo;
import com.zr.quotation.service.QuotationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lenovo on 2020/1/2.
 */
@RestController
@CrossOrigin
public class QuotationController {
    @Autowired
    private  QuotationService quotationService;

    @PostMapping("quotationList/searchPre")
    public ResultVo quotationList(@RequestBody QuotationServiceVo quotationServiceVo){
        ResultVo resultVo = quotationService.quotationList(quotationServiceVo);
       // System.out.println(resultVo.getData());
        return resultVo;
    }

}
